package com.dempsey.user.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dempsey.user.dao.Role;
import com.dempsey.user.mapper.RoleMapper;
import com.dempsey.user.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Dempsey
 * @description 针对表【role】的数据库操作Service实现
 * @createDate 2022-05-01 02:15:53
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role>
        implements RoleService {

    @Autowired
    private RoleMapper roleMapper;

    @Override
    public String getRoleByUserId(int userId) {
        return roleMapper.getRoleNameByUserId(userId);
    }
}




